package com.ruoyi.common.core.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户课程链接对象 sys_user_class
 *
 * @author ruoyi
 * @date 2025-06-27
 */
public class SysUserClass extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 课程主键 */
    private Long classId;

    /** 用户主键 */
    @Excel(name = "用户主键")
    private Long userId;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String className;

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public void setClassId(Long classId)
    {
        this.classId = classId;
    }

    public Long getClassId()
    {
        return classId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("classId", getClassId())
                .append("userId", getUserId())
                .toString();
    }
}